package com.ruoyi.demo.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品业务对象 goods
 *
 * @author fjw
 * @date 2023-06-03
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class GoodsBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 商品名称
     */
    @NotBlank(message = "商品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 商品类型
     */
    @NotNull(message = "商品类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long typeId;

    /**
     * 商品品牌
     */
    @NotBlank(message = "商品品牌不能为空", groups = { AddGroup.class, EditGroup.class })
    private String brand;

    /**
     * 商品地址
     */
    @NotNull(message = "商品地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long addressId;

    /**
     * 商品图片
     */
    private String image;
}
